package com.view.commonView;

import java.awt.Toolkit;
import java.io.File;
import javax.swing.JFrame;

/**
 * @author Diego Iacono
 * 
 */
public class CustomJFrame extends JFrame
{
   public static final String ICON_MENU = "icon ballet - silhouette.PNG";

   public CustomJFrame(String iconName)
   {
      super();
      this.setIconImage(Toolkit.getDefaultToolkit().getImage(loadPath() + iconName));
   }

   private String loadPath()
   {
      File currentDir = new File("");
      String pathStr = currentDir.getAbsolutePath() + "\\icon\\";
      return pathStr;
   }
}
